<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>

	<!--<script src="js/a.js"></script>-->

	<script>

		function test() {

		}

		var test2 = function(x) {
			return x;
		};

		/*var test3 = (y) => {
			return y;
		};*/
		var test3 = y => y;

		var r2 = test2('aaa2');
		var r3 = test3('bbb2');

		console.log(r2);
		console.log(r3);

		/*const obj = {
			name: 'aaa',
			age: 20,
			test: function() {
				return this.name;
			}
		};

		const { name, age, test } = obj;

		console.log(age)*/

		/*const a = 3;
		a = 5;*/
		/*const a;
		a = 5;
		console.log(a);*/

		// var a;
		// console.log(a);

		/*for (let i=0; i<10; i++) {
			// 
		}
		console.log(i)*/

		/*if (3 > 5) {
			let a = 8;
		}
		console.log(a);*/

		/*function test() {
			var a = 9;
		}
		test();
		console.log(a);*/


















		/*if (true) {
			var a = 3;
		}
		console.log(a);*/

		/*if (true) {
			let a = 5;
		}
		console.log(a);*/

		/*for (let i=0; i<10; i++) {
			console.log(i);
		}
		console.log(i);*/

		/*var a = []; 
		for (let i = 0; i < 10; i++) {  
			a[i] = function () {    
				console.log(i);  
			}; 
		}
		a[6]();*/

		/*let a = 3;
		console.log(a);*/

		/*var tmp = 123;
		if (true) {  
			tmp = 'abc'; // ReferenceError  
			let tmp; 
		}*/

		/*let a = 123;

		let a = 456;

		console.log(a);*/

		/*let tmp = new Date();
		function f() { 
			console.log(tmp);  
			if (false) {    
				let tmp = "hello world";  
			} 
		}
		f();*/

		/*{
			let a = 5;
			console.log(a);
		}

		console.log(a);*/

		/*let a = 1;
		a = 2;
		console.log(a);

		const b = 1;
		b = 2;*/

		/*var arr = [1, 2, 3];

		var [a, b, c] = arr;

		console.log(b);*/

		/*var obj = {
			name: 'abc',
			age: 20,
			add: function(a, b) {
				return a + b;
			}
		}

		var {name, age, add} = obj;

		console.log(add(2,5));*/

		/*let x = 1;
		let y = 2;

		// let z = x;
		// x = y;
		// y = z;

		[x, y] = [y, x]*/

		// console.log(...[1, 2, 3]) 

		/*var arr1 = [1, 2, 3];
		var arr2 = ['a', 'b', 'c'];

		// var arr3 = arr1.concat(arr2);
		var arr3 = [...arr1, ...arr2];
		console.log(arr3)*/

		// window.onload = function() {
		// 	alert(1);
		// };

		// window.onload = () => {
		// 	alert(9);
		// 	alert(10)
		// };

		/*var name = 'abc';
		var get = function() {
			alert('get');
		}

		var obj = {
			name,
			get
		}

		console.log(obj);*/

		/*class A {
			constructor() {

			}

			getName() {
				return 'name';
			}
		}

		class B extends A {

		}

		var b = new B();

		console.log(b);*/


	</script>
	
</body>
</html>